package com.ruoyi.baodao.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LinkTemplateExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LinkTemplateExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tID is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tID is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(String value) {
            addCriterion("tID =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(String value) {
            addCriterion("tID <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(String value) {
            addCriterion("tID >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(String value) {
            addCriterion("tID >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(String value) {
            addCriterion("tID <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(String value) {
            addCriterion("tID <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLike(String value) {
            addCriterion("tID like", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotLike(String value) {
            addCriterion("tID not like", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<String> values) {
            addCriterion("tID in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<String> values) {
            addCriterion("tID not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(String value1, String value2) {
            addCriterion("tID between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(String value1, String value2) {
            addCriterion("tID not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andShopidIsNull() {
            addCriterion("shopid is null");
            return (Criteria) this;
        }

        public Criteria andShopidIsNotNull() {
            addCriterion("shopid is not null");
            return (Criteria) this;
        }

        public Criteria andShopidEqualTo(String value) {
            addCriterion("shopid =", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotEqualTo(String value) {
            addCriterion("shopid <>", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidGreaterThan(String value) {
            addCriterion("shopid >", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidGreaterThanOrEqualTo(String value) {
            addCriterion("shopid >=", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidLessThan(String value) {
            addCriterion("shopid <", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidLessThanOrEqualTo(String value) {
            addCriterion("shopid <=", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidLike(String value) {
            addCriterion("shopid like", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotLike(String value) {
            addCriterion("shopid not like", value, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidIn(List<String> values) {
            addCriterion("shopid in", values, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotIn(List<String> values) {
            addCriterion("shopid not in", values, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidBetween(String value1, String value2) {
            addCriterion("shopid between", value1, value2, "shopid");
            return (Criteria) this;
        }

        public Criteria andShopidNotBetween(String value1, String value2) {
            addCriterion("shopid not between", value1, value2, "shopid");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeIsNull() {
            addCriterion("linkGoodsCode is null");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeIsNotNull() {
            addCriterion("linkGoodsCode is not null");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeEqualTo(String value) {
            addCriterion("linkGoodsCode =", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeNotEqualTo(String value) {
            addCriterion("linkGoodsCode <>", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeGreaterThan(String value) {
            addCriterion("linkGoodsCode >", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeGreaterThanOrEqualTo(String value) {
            addCriterion("linkGoodsCode >=", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeLessThan(String value) {
            addCriterion("linkGoodsCode <", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeLessThanOrEqualTo(String value) {
            addCriterion("linkGoodsCode <=", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeLike(String value) {
            addCriterion("linkGoodsCode like", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeNotLike(String value) {
            addCriterion("linkGoodsCode not like", value, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeIn(List<String> values) {
            addCriterion("linkGoodsCode in", values, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeNotIn(List<String> values) {
            addCriterion("linkGoodsCode not in", values, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeBetween(String value1, String value2) {
            addCriterion("linkGoodsCode between", value1, value2, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andLinkgoodscodeNotBetween(String value1, String value2) {
            addCriterion("linkGoodsCode not between", value1, value2, "linkgoodscode");
            return (Criteria) this;
        }

        public Criteria andTemplatenameIsNull() {
            addCriterion("templateName is null");
            return (Criteria) this;
        }

        public Criteria andTemplatenameIsNotNull() {
            addCriterion("templateName is not null");
            return (Criteria) this;
        }

        public Criteria andTemplatenameEqualTo(String value) {
            addCriterion("templateName =", value, "templatename");
            return (Criteria) this;
        }

        public Criteria andTemplatenameNotEqualTo(String value) {
            addCriterion("templateName <>", value, "templatename");
            return (Criteria) this;
        }

        public Criteria andTemplatenameGreaterThan(String value) {
            addCriterion("templateName >", value, "templatename");
            return (Criteria) this;
        }

        public Criteria andTemplatenameGreaterThanOrEqualTo(String value) {
            addCriterion("templateName >=", value, "templatename");
            return (Criteria) this;
        }

        public Criteria andTemplatenameLessThan(String value) {
            addCriterion("templateName <", value, "templatename");
            return (Criteria) this;
        }

        public Criteria andTemplatenameLessThanOrEqualTo(String value) {
            addCriterion("templateName <=", value, "templatename");
            return (Criteria) this;
        }

        public Criteria andTemplatenameLike(String value) {
            addCriterion("templateName like", value, "templatename");
            return (Criteria) this;
        }

        public Criteria andTemplatenameNotLike(String value) {
            addCriterion("templateName not like", value, "templatename");
            return (Criteria) this;
        }

        public Criteria andTemplatenameIn(List<String> values) {
            addCriterion("templateName in", values, "templatename");
            return (Criteria) this;
        }

        public Criteria andTemplatenameNotIn(List<String> values) {
            addCriterion("templateName not in", values, "templatename");
            return (Criteria) this;
        }

        public Criteria andTemplatenameBetween(String value1, String value2) {
            addCriterion("templateName between", value1, value2, "templatename");
            return (Criteria) this;
        }

        public Criteria andTemplatenameNotBetween(String value1, String value2) {
            addCriterion("templateName not between", value1, value2, "templatename");
            return (Criteria) this;
        }

        public Criteria andShowflagIsNull() {
            addCriterion("showFlag is null");
            return (Criteria) this;
        }

        public Criteria andShowflagIsNotNull() {
            addCriterion("showFlag is not null");
            return (Criteria) this;
        }

        public Criteria andShowflagEqualTo(String value) {
            addCriterion("showFlag =", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagNotEqualTo(String value) {
            addCriterion("showFlag <>", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagGreaterThan(String value) {
            addCriterion("showFlag >", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagGreaterThanOrEqualTo(String value) {
            addCriterion("showFlag >=", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagLessThan(String value) {
            addCriterion("showFlag <", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagLessThanOrEqualTo(String value) {
            addCriterion("showFlag <=", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagLike(String value) {
            addCriterion("showFlag like", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagNotLike(String value) {
            addCriterion("showFlag not like", value, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagIn(List<String> values) {
            addCriterion("showFlag in", values, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagNotIn(List<String> values) {
            addCriterion("showFlag not in", values, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagBetween(String value1, String value2) {
            addCriterion("showFlag between", value1, value2, "showflag");
            return (Criteria) this;
        }

        public Criteria andShowflagNotBetween(String value1, String value2) {
            addCriterion("showFlag not between", value1, value2, "showflag");
            return (Criteria) this;
        }

        public Criteria andMadeTimeIsNull() {
            addCriterion("made_time is null");
            return (Criteria) this;
        }

        public Criteria andMadeTimeIsNotNull() {
            addCriterion("made_time is not null");
            return (Criteria) this;
        }

        public Criteria andMadeTimeEqualTo(Date value) {
            addCriterion("made_time =", value, "madeTime");
            return (Criteria) this;
        }

        public Criteria andMadeTimeNotEqualTo(Date value) {
            addCriterion("made_time <>", value, "madeTime");
            return (Criteria) this;
        }

        public Criteria andMadeTimeGreaterThan(Date value) {
            addCriterion("made_time >", value, "madeTime");
            return (Criteria) this;
        }

        public Criteria andMadeTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("made_time >=", value, "madeTime");
            return (Criteria) this;
        }

        public Criteria andMadeTimeLessThan(Date value) {
            addCriterion("made_time <", value, "madeTime");
            return (Criteria) this;
        }

        public Criteria andMadeTimeLessThanOrEqualTo(Date value) {
            addCriterion("made_time <=", value, "madeTime");
            return (Criteria) this;
        }

        public Criteria andMadeTimeIn(List<Date> values) {
            addCriterion("made_time in", values, "madeTime");
            return (Criteria) this;
        }

        public Criteria andMadeTimeNotIn(List<Date> values) {
            addCriterion("made_time not in", values, "madeTime");
            return (Criteria) this;
        }

        public Criteria andMadeTimeBetween(Date value1, Date value2) {
            addCriterion("made_time between", value1, value2, "madeTime");
            return (Criteria) this;
        }

        public Criteria andMadeTimeNotBetween(Date value1, Date value2) {
            addCriterion("made_time not between", value1, value2, "madeTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}